package com.jubao.ejb.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "website_tbl", schema = "jubao_database", uniqueConstraints = {})
public class Website extends GeneEntity implements Serializable {

	private static final long serialVersionUID = -6681629456715929332L;

	@Column(nullable = false, unique = true, updatable = false)
	private String id; // unique

	private String logoImage;

	private String name;

	private String fullName;

	private String searchUrl;

	private String rssUrl;

	@Basic(fetch = FetchType.LAZY)
	@Column(length = 512)
	private String shortDesc;

	@ManyToOne
	Category primaryAreaCategory;

	@ManyToOne
	Category primaryWebsiteCategory;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the logoImage
	 */
	public String getLogoImage() {
		return logoImage;
	}

	/**
	 * @param logoImage the logoImage to set
	 */
	public void setLogoImage(String logoImage) {
		this.logoImage = logoImage;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return the searchUrl
	 */
	public String getSearchUrl() {
		return searchUrl;
	}

	/**
	 * @param searchUrl the searchUrl to set
	 */
	public void setSearchUrl(String searchUrl) {
		this.searchUrl = searchUrl;
	}

	/**
	 * @return the rssUrl
	 */
	public String getRssUrl() {
		return rssUrl;
	}

	/**
	 * @param rssUrl the rssUrl to set
	 */
	public void setRssUrl(String rssUrl) {
		this.rssUrl = rssUrl;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the fullName
	 */
	public String getFullName() {
		return fullName;
	}

	/**
	 * @param fullName the fullName to set
	 */
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	/**
	 * @return the shortDesc
	 */
	public String getShortDesc() {
		return shortDesc;
	}

	/**
	 * @param shortDesc the shortDesc to set
	 */
	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

	/**
	 * @return the primaryAreaCategory
	 */
	public Category getPrimaryAreaCategory() {
		return primaryAreaCategory;
	}

	/**
	 * @param primaryAreaCategory the primaryAreaCategory to set
	 */
	public void setPrimaryAreaCategory(Category primaryAreaCategory) {
		this.primaryAreaCategory = primaryAreaCategory;
	}

	/**
	 * @return the primaryWebsiteCategory
	 */
	public Category getPrimaryWebsiteCategory() {
		return primaryWebsiteCategory;
	}

	/**
	 * @param primaryWebsiteCategory the primaryWebsiteCategory to set
	 */
	public void setPrimaryWebsiteCategory(Category primaryWebsiteCategory) {
		this.primaryWebsiteCategory = primaryWebsiteCategory;
	}

}
